Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify abi3 usage in pep425tags #7367

Merged
merged 3 commits into from
Nov 19, 2019

Conversation

chrahunt
Copy link
Member

@chrahunt chrahunt commented Nov 16, 2019

The justification for this change is similar to #7355 - our documentation states that we try our best given the user inputs for applicable wheel tag calculation. Over-complicating (and potentially over-generalizing) the inclusion criteria for abi3 in pep425tags.get_platforms makes it harder to integrate with packaging.tags, which itself should represent the best-ordered and most full set of tags.

Closes #7327 and progresses #6908.

@chrahunt chrahunt added the type: refactor Refactoring code label Nov 16, 2019
@chrahunt chrahunt changed the title Simplify abi3 usage in pep425tags. Simplify abi3 usage in pep425tags Nov 16, 2019
@chrahunt chrahunt marked this pull request as ready for review November 16, 2019 19:57
abi3 refers to the CPython stable ABI, so we should only ensure it
applies in that particular case.

This simplifies the logic in get_platforms() and makes us more
compatible with the behavior of packaging.tags, which only includes abi3
for cpython_tags() and only the literal "abi3".
@chrahunt
Copy link
Member Author

Thanks for reviewing. :)

@chrahunt chrahunt merged commit b802331 into pypa:master Nov 19, 2019
@chrahunt chrahunt deleted the refactor/simplify-abi3 branch November 19, 2019 00:24
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Dec 19, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Dec 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation type: refactor Refactoring code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use plain "abi3" where supported in pep425tags.get_supported
2 participants